package com.itheima.Service.Impl;

import com.itheima.Dao.SetmealDao;
import com.itheima.Service.SetmealService;
import com.itheima.pojo.Setmeal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealServiceImpl implements SetmealService {
@Autowired
private SetmealDao setmealDao;
    @Override
    public List<Setmeal> findAll() {
       return setmealDao.findAll();
    }

    @Override
    public Setmeal findById(Integer id) {
        return setmealDao.findById4Detail(id);
    }
}
